<template>
  <el-avatar
    :class="['c-avatar', `c-avatar--${props.size}`]"
    :size="props.size == 'default' ? 32 : 24"
    v-bind="$attrs"
  >
    <slot></slot>
  </el-avatar>
</template>
<script lang="ts" setup>
import { withDefaults, defineProps } from 'vue';
interface IProps {
  size?: 'small' | 'default';
}
const props = withDefaults(defineProps<IProps>(), {
  size: 'default'
});
</script>
